package com.bcinfo.iccard.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bcinfo.iccard.model.ComboCardDailyEarningsDetail;

public interface ComboCardDailyEarningsDetailMapper
{
    int deleteByPrimaryKey(Long combocardDailyEarningsDetailId);

    int insert(ComboCardDailyEarningsDetail record);

    int insertSelective(ComboCardDailyEarningsDetail record);

    ComboCardDailyEarningsDetail selectByPrimaryKey(Long combocardDailyEarningsDetailId);

    int updateByPrimaryKeySelective(ComboCardDailyEarningsDetail record);

    int updateByPrimaryKey(ComboCardDailyEarningsDetail record);

    int getLastSelectTotalNum();

    List<ComboCardDailyEarningsDetail> selectByCard(@Param("cardId") long cardId,
            @Param("merchantCode") String sellerCode, @Param("beginTime") String beginTime,
            @Param("endTime") String endTime, @Param("firstIndex") int first, @Param("maxRows") int maxRow);

    ComboCardDailyEarningsDetail selectSumByCard(@Param("cardId") String cardId,
            @Param("merchantCode") String sellerCode, @Param("beginTime") String beginTime,
            @Param("endTime") String endTime);
}